//
//  BBSService.m
//  fmdb_demo
//
//  Created by rujia chen on 15/10/18.
//  Copyright (c) 2015年 dfrz. All rights reserved.
//

#import "BBSService.h"

@implementation BBSService

+ (void)listEssentialTopWithSuccessBlock:(ResponseBlock)success failBlock:(ResponseBlock)failBlock networkFailBlock:(NetworkFailBlock)networkFailBlock{
    [self GET:@"http://app.api.autohome.com.cn/autov5.0.0/club/jingxuantopic-pm1-c0-p1-s30.json" params:nil success:success fail:failBlock networkFail:networkFailBlock];
}

+ (void)loadEssentialTopicDetail:(TopicModel *)topic success:(ResponseDataBlock)success networkFailBlock:(NetworkFailBlock)networkFailBlock{
    NSString *url = [NSString stringWithFormat:@"http://forum.app.autohome.com.cn/autov5.0.0/forum/club/topiccontent-a2-pm1-v5.0.0-t%@-o0-p1-s20-c1-nt0-fs0-sp0-al0-cw320-rct1.json",@(topic.topicid)];
    [self GETForText:url params:nil success:success networkFail:networkFailBlock];
}

@end
